package com.link_with_health.mapper;

import com.link_with_health.model.PrescriptionEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;


@Mapper
public interface PrescriptionMapper {
    PrescriptionEntity queryPrescriptionById(Long id);
    List<PrescriptionEntity> queryPrescriptionByInquiry(Long id);
    List<PrescriptionEntity> queryPrescriptionByPatient(Long id);
    List<PrescriptionEntity> queryPrescriptionByDoctor(Long id);
    List<PrescriptionEntity> queryAllPrescription();
    int insertPrescription(PrescriptionEntity prescription);
    int updatePrescription(PrescriptionEntity prescription);
    int deletePrescription(Long id);
}
